﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListLoaiSanPham.aspx.cs"
    Inherits="SES.CMS.AdminCP.ListLoaiSanPham" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Chọn Danh mục</title>
    <script type="text/javascript">
        function ReturnToParentPage() {
            var parentWindow = window.parent;
            parentWindow.SelectAndClosePopup(tlCategory.GetFocusedNodeKey());
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <dxwtl:ASPxTreeList ID="tlCategory" runat="server" AutoGenerateColumns="False" Width="90%"
            ClientInstanceName="tlCategory" KeyFieldName="LoaiSanPhamID" ParentFieldName="ParentID"
            EnableCallbacks="False">
            <SettingsPager Mode="ShowPager" PageSize="40">
                <AllButton Text="Tất cả">
                </AllButton>
                <NextPageButton Text="Tiếp theo &gt;">
                </NextPageButton>
                <PrevPageButton Text="&lt; Trước">
                </PrevPageButton>
            </SettingsPager>
            <SettingsBehavior AllowFocusedNode="True" />
            <SettingsPager ShowDefaultImages="False">
                <AllButton Text="Tất cả">
                </AllButton>
                <NextPageButton Text="Tiếp theo &gt;">
                </NextPageButton>
                <PrevPageButton Text="&lt; Trước">
                </PrevPageButton>
            </SettingsPager>
            <Columns>
                <dxwtl:TreeListTextColumn FieldName="LoaiSanPhamID" Name="clCategoryID" Visible="False"
                    VisibleIndex="0">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Tên loại sản phẩm" Width="40%" FieldName="TenLoaiSanPham"
                    Name="clTenLoaiSanPham" VisibleIndex="0">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Mã loại sản phẩm" Width="20%" Name="clMaLoaiSanPham"
                    VisibleIndex="1" FieldName="MaLoaiSanPham">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Mô tả" Width="20%" FieldName="MoTa" Name="clMoTa"
                    VisibleIndex="2">
                </dxwtl:TreeListTextColumn>
                <dxwtl:TreeListTextColumn Caption="Thứ tự" Width="10%" FieldName="OrderID" Name="clOrderID"
                    VisibleIndex="3">
                </dxwtl:TreeListTextColumn>
            </Columns>
        </dxwtl:ASPxTreeList>
    </div>
    <div>
        <asp:Button ID="btChon" runat="server" Text="Chọn" OnClientClick="ReturnToParentPage()" />
    </div>
    </form>
</body>
</html>
